<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:body onload="foco();">
	<ui:composition template="../template.xhtml">
		<ui:define name="miolo">
				<p:growl id="erros"/> 
			<h:form id="DEProject">
		     	<p:panel id="panel" header="#{msgs.maintenanceProjects}">
					<table width="100%">
						<tr valign="middle">
							<td width="40px" align="left"><p:commandButton
									value="#{msgs.record}" action="#{projectFrm.record}"
									update="name,date,situation,erros" /></td>
							<td align="right"><p:commandButton value="#{msgs.regress}"
									action="lista.faces" ajax="false" immediate="true" /></td>
						</tr>
					</table>
					<table>
						<tr>
							<td class="rotulo"><h:outputText value="#{msgs.name}:" /></td>
							<td><p:inputText id="name"
									value="#{projectFrm.projeto.projeto.nome}" size="40" required="true" requiredMessage="Campo Obrigatóro - Nome"/></td>
						</tr>
						<tr>
							<td class="rotulo"><h:outputText value="#{msgs.date}:" /></td>
							<td><p:calendar value="#{projectFrm.projeto.projeto.data}"
									locale="#{facesContext.externalContext.request.locale}"
									id="date" effect="explode" required="true" requiredMessage="Campo Obrigatóri- Data" /></td>
						</tr>
						<tr>
							<td class="rotulo"><h:outputText value="#{msgs.situation}:" />
							</td>
							<td><h:selectOneMenu required="true" styleClass="select" id="situation"
									value="#{projectFrm.projeto.projeto.situacao}">
									<f:selectItems value="#{projectFrm.situation}" />
								</h:selectOneMenu></td>
						</tr>
					</table>
				</p:panel>
			</h:form>
		</ui:define>
	</ui:composition>
</h:body>
</html>

